<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('planning/'.($form->getObject()->isNew() ? 'create_phase' : 'update_phase?plnphs_id='.$form->getObject()->getPlnphsId())) ?>" method="post">

<?php if (!$form->getObject()->isNew()): ?>
	<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>

<?php echo $form->renderHiddenFields(false) ?>
<?php echo $form->renderGlobalErrors() ?>


<table>
	<tbody>
		<tr>
			<th>Ordre</th>
			<td><?php echo $form->getObject()->getPlnphsOrdre() ?></td>
		</tr>
		<?php echo $form['plnphs_libelle']->renderRow(array('size' => 100)) ?></th>
		<?php echo $form['plnphs_date_debut']->renderRow(array('size' => 10)) ?></th>
		<?php echo $form['plnphs_date_echeance']->renderRow(array('size' => 10)) ?></th>
    </tbody>
</table>

<input type="submit" value="Enregistrer" />

</form>

<?php echo link_to('Retour planning', 'planning/index') ?>
